<?php
/**
 * Copyright (c) 2022-2222   All rights reserved.
 *
 * 创建时间：2022-04-03 10:38
 *
 * 项目：levs  -  $  - ZstXtController.php
 *
 * 作者：liwei
 */

//!defined('INLEV') && exit('Access Denied LEV');


namespace modules\levcc\controllers;

use Lev;
use lev\base\Controllerv;
use modules\levcc\widgets\zst_xt\tabViewZstXtWidget;

class ZstXtController extends Controllerv
{

    public static function actionIndex() {
        $tabId = Lev::stripTags(Lev::GPv('tab') ?: Lev::GPv('opid'));

        tabViewZstXtWidget::viewvs($tabId);
    }

    public static function actionLoadData() {
        $tabId = Lev::stripTags(Lev::GPv('tab') ?: Lev::GPv('opid'));

        $responseMsg = tabViewZstXtWidget::loadData($tabId);
        //Lev::showMessages($responseMsg);
        static::echoJson($responseMsg);
    }
}